import java.util.Arrays;

/**
 * @Author YuanYuan
 * @Date 2022/5/7
 * @Time 10:24
 */
public class TestDemo {
    public static int[] my_copyOf(int[] arr) {
        int[] copy = new int[arr.length];
        for (int i = 0; i < arr.length; i++) {
            copy[i] = arr[i];
        }
        return copy;
    }
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.toString(my_copyOf(arr)));
    }
}
